﻿using System;
using System.Windows;

namespace ImageControl.ViewModels.Handlers
{
    public class TopRightHandler : HandlerViewModel
    {
        public TopRightHandler(AdornerViewModel adorner)
            : base(adorner)
        {
        }

        public override void HandleMove(Point coordinate)
        {
            double orientedHeight, orientedWidth, rotatedCenterX, rotatedCenterY;
            this.HandleRightMove(coordinate, out orientedWidth, out rotatedCenterX);
            this.HandleTopMove(coordinate, out orientedHeight, out rotatedCenterY);

            this.HandleMove(orientedWidth, orientedHeight, rotatedCenterX, rotatedCenterY);
        }
    }
}